package com.ruoyi.industry.mapper;

import java.util.List;

import com.ruoyi.industry.domain.DictDataVo;
import com.ruoyi.industry.domain.SpaceCollect;
import com.ruoyi.industry.domain.SpaceIndustry;
import com.ruoyi.industry.domain.SpaceIndustryVo;
import com.ruoyi.system.api.domain.SysDictData;
import com.ruoyi.system.api.domain.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 产业空间Mapper接口
 *
 * @author MagicCube
 * @date 2023-05-19
 */
@Mapper
public interface SpaceIndustryMapper
{
    /**
     * 查询产业空间
     *
     * @param id 产业空间主键
     * @return 产业空间
     */
    public SpaceIndustry selectSpaceIndustryById(Long id);

    /**
     * 查询产业空间列表
     *
     * @param spaceIndustry 产业空间
     * @return 产业空间集合
     */
    public List<SpaceIndustry> selectSpaceIndustryList(SpaceIndustry spaceIndustry);

    public List<SpaceIndustry> selectSpaceIndustryListz(SpaceIndustry spaceIndustry);
    /**
     * 新增产业空间
     *
     * @param spaceIndustry 产业空间
     * @return 结果
     */
    public int insertSpaceIndustry(SpaceIndustry spaceIndustry);

    /**
     * 根据楼宇修改产业空间
     *
     * @param spaceIndustry 产业空间
     * @return 结果
     */
    public int updateSpaceIndustryByBuildId(SpaceIndustry spaceIndustry);

    /**
     * 根据楼宇修改产业空间
     *
     * @param spaceIndustry 产业空间
     * @return 结果
     */
    public int updateSpaceIndustry(SpaceIndustry spaceIndustry);
    /**
     * 根据仓库修改产业空间
     *
     * @param spaceIndustry 产业空间
     * @return 结果
     */
    public int updateSpaceIndustryByWarehouseId(SpaceIndustry spaceIndustry);

    /**
     * 根据厂房修改产业空间
     *
     * @param spaceIndustry 产业空间
     * @return 结果
     */
    public int updateSpaceIndustryByWorkshopId(SpaceIndustry spaceIndustry);

    /**
     * 根据公寓修改产业空间
     *
     * @param spaceIndustry 产业空间
     * @return 结果
     */
    public int updateSpaceIndustryByApartmentId(SpaceIndustry spaceIndustry);
    public int updateSpaceIndustryByLandId(SpaceIndustry spaceIndustry);
    public int updateSpaceIndustryByAuctionId(SpaceIndustry spaceIndustry);
    public int updateSpaceIndustryByParkId(SpaceIndustry spaceIndustry);
    /**
     * 删除产业空间
     *
     * @param id 产业空间主键
     * @return 结果
     */
    public int deleteSpaceIndustryById(Long id);

    /**
     * 批量删除产业空间
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSpaceIndustryByIds(Long[] ids);

    int deleteSpaceIndustryByProjectBuildingId(Long id);
    int deleteSpaceIndustryByProjectBuildingIds(Long[] ids);
    int deleteSpaceIndustryByProjectWarehouseId(Long id);
    int deleteSpaceIndustryByProjectWarehouseIds(@Param("ids") Long[] ids);
    int deleteSpaceIndustryByProjectWorkshopId(Long id);
    int deleteSpaceIndustryByProjectWorkshopIds(@Param("ids") Long[] ids);
    int deleteSpaceIndustryByProjectApartmentId(Long id);
    int deleteSpaceIndustryByProjectApartmentIds(@Param("ids") Long[] ids);
    int deleteSpaceIndustryByProjectLandId(Long id);
    int deleteSpaceIndustryByProjectLandIds(@Param("ids") Long[] ids);

    int deleteSpaceIndustryByProjectParkId(Long id);
    int deleteSpaceIndustryByProjectParkIds(@Param("ids") Long[] ids);

    int deleteSpaceIndustryByProjectAuctionId(Long id);
    int deleteSpaceIndustryByProjectAuctionIds(@Param("ids") Long[] ids);

    public List<SpaceIndustry> selectSpaceCollectListz(SpaceCollect spaceCollect);

    public List<SpaceIndustry> selectSpaceIndustryPopularList(SpaceIndustry spaceIndustry);
    public List<SpaceIndustry> selectSpaceIndustryNewlyAddedList(SpaceIndustry spaceIndustry);

    int updatePageViews(String spaceId);

    List<SpaceIndustry> selectSpaceIndustryListx(SpaceIndustry spaceIndustry);

    List<DictDataVo> selectEconomicBeltList();

    List<String> selectBusinessIdsByUserId(Long userId);

    List<SpaceIndustry> selectSpaceIndustryIdByUserId(Long userId);

    List<SpaceIndustry> selectIndustryList(SpaceIndustryVo spaceIndustry);

    List<SpaceIndustry> selectSpaceCheckIssueList(SpaceIndustry spaceIndustry);

    List<SpaceIndustry> selectHighGradeList(SpaceIndustry spaceIndustry);

    SpaceIndustry selectSpaceIndustryBySpaceId(String spaceId);

    Integer deleteSpaceRecomById(@Param("type") String type,@Param("id") Long id);

    SysUser selectSysUserById(String userId);
}
